package cate.game.role.friend.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBFriend;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "添加到黑名单 の 请求")
public class FriendAddBlackListReq implements MsgInput {
    @NoteField(value = "好友唯一id")
    public String uid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getFriend().addBlackList(uid);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBFriend.ADD_BLACK_LIST_REQ;
    }
}
